<script >
import axios from "axios";
export default {
  data() {
    return {
      users: [],
    };
  },
  mounted() {
    axios.get("http://192.168.1.150:3000/api/users").then((response) => {
      this.users = response.data;
    });
  },
};
</script>

<template>
  <div>
    <ul>
      <li v-for="user in this.users" :key="user.id">
        {{ user.name }}
      </li>
    </ul>
  </div>
</template>

<style scoped>
</style>
